package top.dancun.eascourse.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.dancun.common.utils.R;
import top.dancun.eascourse.config.FeignConfig;

import java.util.List;
import java.util.Map;

@Component
@RequestMapping("/easstudent")
@FeignClient(value = "EAS-student" ,configuration = FeignConfig.class)
public interface StudentFeign {

    @PostMapping("/student/getbyids")
    public R getStudentByIds(@RequestParam Map<String,String> params ,@RequestParam List<String> ids, @RequestParam List<Integer> cids);
}
